software master at the intersection of technology, science and art

home

download

model


The Model contains datstructures. The Model's published properties should be mapped to what is necessary for the View to present. Inside the Model is retrieved from a datasource and then mapped to these properties. Usually these are Plain Old Class Objects (POCO) which exist just for the presentation of data. The datasource may be constructed for dat integrity or other constraints. For eaxmple, in an RDMS, the data retrieval may require joins across tables, in order to retrieve or asggregate display data. These structures are usually too complex or to wordy for the presentation.


The Model should contain the business rules and return exceptions and errors in an orderly fashion back to the Controller.